﻿using System.Windows.Media;
using UserControl = System.Windows.Controls.UserControl;

namespace BeerManagementSystem
{
    /// <summary>
    /// Interaktionslogik für AssignCard.xaml
    /// </summary>
    public partial class AssignCard : UserControl
    {
// ReSharper disable FieldCanBeMadeReadOnly.Local
        private string[] names;
// ReSharper restore FieldCanBeMadeReadOnly.Local
        public AssignCard(string[] names)
        {
            this.names = names;
            InitializeComponent();
            ManageSuggestions();
        }
        private void ManageSuggestions()
        {
            userNameComboBox.ItemsSource = names;
        }

        private void userNameComboBox_Loaded(object sender, System.Windows.RoutedEventArgs e)
        {
            userNameComboBox.Focus();
            userNameComboBox.IsDropDownOpen = false;
        }
        
    }
}
